#include "InBracket.h"

InBracket::InBracket(Scope* pParentScope)
{
    m_eType=Scope::eScopeBracket;
    m_pxParent = pParentScope;
	m_sScopeEnder = "]";
}

InBracket::~InBracket(void)
{
}

Scope* InBracket::parse(Token& inToken, bool &bIsEndOfScope)
{
    Scope* pxScope = NULL;
    bIsEndOfScope=false;

    pxScope = Scope::parse(inToken, bIsEndOfScope);

	if(inToken.m_sValue == m_sScopeEnder)
    {
		bIsEndOfScope= true;
    }

    return pxScope;
}